package sms.ui.chengji;

import sms.dao.ChengJiDao;
import sms.entry.ChengJi;
import sms.entry.KeCheng;
import sms.entry.XueSheng;
import sms.ui.ChengJiGuanLi;
import sms.ui.KeChenGuanLi;

import java.util.Scanner;

public class ChengjiFind {
    private static ChengJiDao chengJiDao = new ChengJiDao();
    public static void show(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要查询成绩的学生学号：");
        int xuehao = sc.nextInt();
        System.out.println("请输入要查询成绩的科目：");
        String  km = sc.next();
        XueSheng xueSheng = new XueSheng(xuehao);
        KeCheng keCheng = new KeCheng(km);
        chengJiDao.find(xueSheng,keCheng);
        ChengJiGuanLi.show();
    }
}
